package com.lx.yygh.user.client;

import com.lx.yygh.model.user.Patient;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Repository;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @author c先生
 * @date 2022年10月30日 下午 4:36:24
 * @describe
 */
@FeignClient(value = "service-user")
@Repository(value = "patientFeignClient")
public interface PatientFeignClient {

    //根据id获取就诊人信息
    @GetMapping("/api/patient/inner/get/{id}")
    public Patient getPatientById(@PathVariable("id") Long id);
}
